package com.mobi.Survey.uicomponents;

import com.mobi.Survey.controller.SurveyDetailPojo;

import android.content.Context;
import android.graphics.Color;
import android.widget.RadioButton;

/**
 * 
 * <p>
 * <b>Author:</b> Yahya Arshad
 * <p>
 * <b>Company:</b> Mobi Media Soft
 * <p>
 * <b> Website:</b> www.mobimediasoft.com
 * <p>
 * CustomRadioButton.java
 * 
 * 
 */
public class CustomRadioButton extends RadioButton
{

	public CustomRadioButton(Context context)
	{
		super(context);
		// TODO Auto-generated constructor stub
	}

	public void setTextColor(SurveyDetailPojo sdp)
	{
		if (null != sdp && null != sdp.getSurvey()
				&& null != sdp.getSurvey().getFontColor())
		{
			String txtColor = sdp.getSurvey().getFontColor();

			this.setTextColor(Color.parseColor("#" + txtColor));
		} else
		{
			this.setTextColor(Color.WHITE);
		}
	}
}
